import request from '@/utils/request'

// 查询邮箱配置列表
export function listBasicEmailConfig(query) {
  return request({
    url: '/system/basicEmailConfig/list',
    method: 'get',
    params: query
  })
}

// 查询邮箱配置详细
export function getBasicEmailConfig(emailConfigId) {
  return request({
    url: '/system/basicEmailConfig/' + emailConfigId,
    method: 'get'
  })
}

// 新增邮箱配置
export function addBasicEmailConfig(data) {
  return request({
    url: '/system/basicEmailConfig',
    method: 'post',
    data: data
  })
}

// 修改邮箱配置
export function updateBasicEmailConfig(data) {
  return request({
    url: '/system/basicEmailConfig',
    method: 'put',
    data: data
  })
}

// 删除邮箱配置
export function delBasicEmailConfig(emailConfigId) {
  return request({
    url: '/system/basicEmailConfig/' + emailConfigId,
    method: 'delete'
  })
}
